
package com.qf.model;

public class OrderItem {
	  
	  private String itemid;
	  private int count;
	  private double subtotal;
	  private Product product;
	  private Orders orders;
	public String getItemid() {
	
		return itemid;
	}
	public void setItemid(String itemid) {
	
		this.itemid = itemid;
	}
	public int getCount() {
	
		return count;
	}
	public void setCount(int count) {
	
		this.count = count;
	}
	public double getSubtotal() {
	
		return subtotal;
	}
	public void setSubtotal(double subtotal) {
	
		this.subtotal = subtotal;
	}
	public Product getProduct() {
	
		return product;
	}
	public void setProduct(Product product) {
	
		this.product = product;
	}
	public Orders getOrders() {
	
		return orders;
	}
	public void setOrders(Orders orders) {
	
		this.orders = orders;
	}
	@Override
	public String toString() {
		return "OrderItem [itemid=" + itemid + ", count=" + count + ", subtotal=" + subtotal + ", product=" + product
				+ ", orders=" + orders + "]";
	}
	public OrderItem(String itemid, int count, double subtotal, Product product, Orders orders) {
		super();
		this.itemid = itemid;
		this.count = count;
		this.subtotal = subtotal;
		this.product = product;
		this.orders = orders;
	}
	public OrderItem() {
		
		super();
		//TODO 
			
	}
	
	  
}